Skip to content

Conversation

@droe
Copy link
Contributor

@droe droe commented Nov 11, 2025

The sample code for setting up PAC is missing the read register call for HCR_EL2. This leads to clobbering HCR_EL2 with whatever the bits in SCTLR_EL1 were.

Fix by adding the missing register read call.

The sample code for setting up PAC is missing the read register call for
`HCR_EL2`.  This leads to clobbering HCR_EL2 with whatever the bits in
`SCTLR_EL1` were.
@wtdcode wtdcode merged commit eb97134 into unicorn-engine:dev Jan 16, 2026
34 of 39 checks passed
@wtdcode
Copy link
Member

wtdcode commented Jan 16, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants